package sctu.edu.java.year2016.team07.nieying.practice.dibazhang.lianxiwu;

import java.util.Date;

/**
 * Created by Administrator on 2016/5/26 0026.
 */

public class Text_4 {
    public static void main(String[] args){
        Employee employee=new Employee();
        employee.setName("nieying");
        employee.setSalary(100);
        employee.setBirthday(new Date());
        Manager manager=new Manager();
        manager.setName("明日之心");
        manager.setSalary(2000);
        manager.setBirthday(new Date());
        manager.setBonus(3000);
        System.out.println("员工的姓名: " + employee.getName());
        System.out.println("员工的工资: " + employee.getSalary());
        System.out.println("员工的生日: "+employee.getBirthday());
        System.out.println("经理的姓名: "+manager.getName());
        System.out.println("经理的工资: "+manager.getSalary());
        System.out.println("经理的生日: "+manager.getBirthday());
        System.out.println("经理的奖金: " + manager.getBonus());
        Manager a=new Manager();
        a.display();
        Manager b=new Manager();
        b.like();
    }
}
